package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbProxyFavorableDao;
import com.gtw.modules.entity.TbProxyFavorable;
import com.gtw.modules.sys.service.TbProxyFavorableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/29.
 */
@Service
public class TbProxyFavorableServiceImpl implements TbProxyFavorableService {

    @Autowired
    private TbProxyFavorableDao proxyFavorableDao;

    @Override
    public TbProxyFavorable queryObject(Integer id){
        return proxyFavorableDao.queryObject(id);
    }

    @Override
    public List<TbProxyFavorable> queryList(Map<String, Object> map){
        return proxyFavorableDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return proxyFavorableDao.queryTotal(map);
    }

    @Override
    public void save(TbProxyFavorable proxyFavorable){
        proxyFavorableDao.save(proxyFavorable);
    }

    @Override
    public void update(TbProxyFavorable proxyFavorable){
        proxyFavorableDao.update(proxyFavorable);
    }

    @Override
    public void delete(Integer id){
        proxyFavorableDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        proxyFavorableDao.deleteBatch(ids);
    }

    @Override
    public List<TbProxyFavorable> queryAll() {
        return proxyFavorableDao.queryAll();
    }
}
